#include <buola/gui.h>
#include <buola/gui/ctoolkit.h>
#include <buola/io/cresourcefinder.h>

namespace buola { namespace gui {

io::CResourceFinder &dialog_finder()
{
    static io::CResourceFinder *lFinder=nullptr;
    
    if(!lFinder)
    {
        std::vector<std::string> lSubPaths={"dialogs"};
        lFinder=new io::CResourceFinder(io::data_finder(),lSubPaths);
        lFinder->AddExtension("dialog");
    }
    
    return *lFinder;
}

/*namespace gui*/ } /*namespace buola*/ }
